/*
 * $Id: AbstractCfgOnwatchFileInfo.java,v 1.5 2009/07/24 18:27:42 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Sun May 03 21:11:35 CDT 2009 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the CFG_ONWATCH_FILE_INFO table. 
 * You can customize the behavior of this class by editing the class, {@link CfgOnwatchFileInfo()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractCfgOnwatchFileInfo 
    implements Serializable
{
    /**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -6975148639346666724L;

	/** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Long onwatchFileId;

    /** The value of the simple fileDirectory property. */
    private java.lang.String fileDirectory;

    /** The value of the simple fileId property. */
    private java.lang.String fileId;

    /** The value of the simple fileName property. */
    private java.lang.String fileName;

    /** The value of the simple direction property. */
    private java.lang.String direction;

    /** The value of the simple fileType property. */
    private java.lang.String fileType;

    /**
     * Simple constructor of AbstractCfgOnwatchFileInfo instances.
     */
    public AbstractCfgOnwatchFileInfo()
    {
    }

    /**
     * Constructor of AbstractCfgOnwatchFileInfo instances given a simple primary key.
     * @param onwatchFileId
     */
    public AbstractCfgOnwatchFileInfo(java.lang.Long onwatchFileId)
    {
        this.setOnwatchFileId(onwatchFileId);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Long
     */
    public java.lang.Long getOnwatchFileId()
    {
        return onwatchFileId;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param onwatchFileId
     */
    public void setOnwatchFileId(java.lang.Long onwatchFileId)
    {
        this.hashValue = 0;
        this.onwatchFileId = onwatchFileId;
    }

    /**
     * Return the value of the FILE_DIRECTORY column.
     * @return java.lang.String
     */
    public java.lang.String getFileDirectory()
    {
        return this.fileDirectory;
    }

    /**
     * Set the value of the FILE_DIRECTORY column.
     * @param fileDirectory
     */
    public void setFileDirectory(java.lang.String fileDirectory)
    {
        this.fileDirectory = fileDirectory;
    }

    /**
     * Return the value of the FILE_NAME column.
     * @return java.lang.String
     */
    public java.lang.String getFileName()
    {
        return this.fileName;
    }

    /**
     * Set the value of the FILE_NAME column.
     * @param fileName
     */
    public void setFileName(java.lang.String fileName)
    {
        this.fileName = fileName;
    }

    /**
     * Return the value of the FILE_ID column.
     * @return java.lang.String
     */
    public java.lang.String getFileId()
    {
        return this.fileId;
    }

    /**
     * Set the value of the FILE_ID column.
     * @param fileName
     */
    public void setFileId(java.lang.String fileId)
    {
        this.fileId = fileId;
    }
    
    /**
     * Return the value of the DIRECTION column.
     * @return java.lang.String
     */
    public java.lang.String getDirection()
    {
        return this.direction;
    }

    /**
     * Set the value of the DIRECTION column.
     * @param direction
     */
    public void setDirection(java.lang.String direction)
    {
        this.direction = direction;
    }

    /**
     * Return the value of the FILE_TYPE column.
     * @return java.lang.String
     */
    public java.lang.String getFileType()
    {
        return this.fileType;
    }

    /**
     * Set the value of the FILE_TYPE column.
     * @param fileType
     */
    public void setFileType(java.lang.String fileType)
    {
        this.fileType = fileType;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof CfgOnwatchFileInfo))
            return false;
        CfgOnwatchFileInfo that = (CfgOnwatchFileInfo) rhs;
        if (this.getOnwatchFileId() == null || that.getOnwatchFileId() == null)
            return false;
        return (this.getOnwatchFileId().equals(that.getOnwatchFileId()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int onwatchFileIdValue = this.getOnwatchFileId() == null ? 0 : this.getOnwatchFileId().hashCode();
            result = result * 37 + onwatchFileIdValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}
